#ifndef __THREADPOOL__
#define __THREADPOOL__
#include "haxi.h"
#include "head.h"
#include "taskQueue.h"
#include "workerArr.h"
#include "recvComm.h"
#include "serverLogin.h"
typedef struct threadPool_s{
    taskQueue_t taskQueue;//子线程信息
    workerArr_t workerArr;//任务队列
    pthread_mutex_t mutex;
    pthread_cond_t cond;
    int exitFlag;
}threadPool_t;

int tcpInit(char *ip,char* port);
int epollAdd(int epfd,int fd);
int epollDele(int epfd,int fd);
int threadPoolInit(threadPool_t *pthreadPool,int workernum);
int makeWorker(threadPool_t *threadPool);
int mysql_use_select(const char *name,const char *condition1,const char *condition2,char * tempbuf,commandStack_t *stack);

#endif




